package com.lupan.dataanalyze.config;

import com.timanetworks.apidocs.springfox.Swagger2Config;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author clevo
 *
 */
@Configuration //必须存在
@EnableSwagger2 //必须存在
//@EnableWebMvc //必须存在
//@ComponentScan(basePackages = {"com.timanetworks.dataanalyze.controller"}) //必须存在 扫描的API Controller package name 也可以直接扫描class (basePackageClasses)
public class SpringfoxSwagger2Config extends Swagger2Config {

	@Override
	protected ApiInfo apiInfo() {
		Contact contact = new Contact("陈俊林", "https://timanetworks.com", "jensen.chen@timanetworks.com");
		return new ApiInfo("Service Router APIs",//大标题 title
				"External Service Proxy Middleware",//小标题
				"0.0.1",//版本
				"https://timanetworks.com",//termsOfServiceUrl
				contact,//作者
				"BORGWARD",//链接显示文字
				"https://timanetworks.com"//网站链接
		);
	}

}
